﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ERPDataSet" targetNamespace="http://tempuri.org/ERPDataSet.xsd" xmlns:mstns="http://tempuri.org/ERPDataSet.xsd" xmlns="http://tempuri.org/ERPDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="ERP_ConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="ERP_ConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.AMix.Properties.Settings.GlobalReference.Default.ERP_ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="a_act_SECTIITableAdapter" GeneratorDataComponentClassName="a_act_SECTIITableAdapter" Name="a_act_SECTII" UserDataComponentName="a_act_SECTIITableAdapter">
            <MainSource>
              <DbSource ConnectionRef="ERP_ConnectionString (Settings)" DbObjectName="ERP.dbo.a_act_SECTII" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[a_act_SECTII] WHERE (((@IsNull_SEC = 1 AND [SEC] IS NULL) OR ([SEC] = @Original_SEC)) AND ((@IsNull_ATEL = 1 AND [ATEL] IS NULL) OR ([ATEL] = @Original_ATEL)) AND ((@IsNull_DEN = 1 AND [DEN] IS NULL) OR ([DEN] = @Original_DEN)) AND ((@IsNull_CodDiagrama = 1 AND [CodDiagrama] IS NULL) OR ([CodDiagrama] = @Original_CodDiagrama)) AND ([ID] = @Original_ID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SEC" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SEC" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SEC" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SEC" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ATEL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ATEL" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ATEL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ATEL" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DEN" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DEN" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_DEN" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DEN" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CodDiagrama" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CodDiagrama" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_CodDiagrama" Precision="19" ProviderType="Decimal" Scale="0" Size="0" SourceColumn="CodDiagrama" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[a_act_SECTII] ([SEC], [ATEL], [DEN], [CodDiagrama]) VALUES (@SEC, @ATEL, @DEN, @CodDiagrama);
SELECT SEC, ATEL, DEN, CodDiagrama, ID FROM a_act_SECTII WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SEC" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SEC" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ATEL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ATEL" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@DEN" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DEN" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@CodDiagrama" Precision="19" ProviderType="Decimal" Scale="0" Size="0" SourceColumn="CodDiagrama" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT SEC, ATEL, DEN, CodDiagrama, ID FROM dbo.a_act_SECTII</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[a_act_SECTII] SET [SEC] = @SEC, [ATEL] = @ATEL, [DEN] = @DEN, [CodDiagrama] = @CodDiagrama WHERE (((@IsNull_SEC = 1 AND [SEC] IS NULL) OR ([SEC] = @Original_SEC)) AND ((@IsNull_ATEL = 1 AND [ATEL] IS NULL) OR ([ATEL] = @Original_ATEL)) AND ((@IsNull_DEN = 1 AND [DEN] IS NULL) OR ([DEN] = @Original_DEN)) AND ((@IsNull_CodDiagrama = 1 AND [CodDiagrama] IS NULL) OR ([CodDiagrama] = @Original_CodDiagrama)) AND ([ID] = @Original_ID));
SELECT SEC, ATEL, DEN, CodDiagrama, ID FROM a_act_SECTII WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SEC" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SEC" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ATEL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ATEL" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@DEN" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DEN" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@CodDiagrama" Precision="19" ProviderType="Decimal" Scale="0" Size="0" SourceColumn="CodDiagrama" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SEC" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SEC" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SEC" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SEC" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ATEL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ATEL" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ATEL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ATEL" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DEN" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DEN" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_DEN" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DEN" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CodDiagrama" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CodDiagrama" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_CodDiagrama" Precision="19" ProviderType="Decimal" Scale="0" Size="0" SourceColumn="CodDiagrama" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="ERP.dbo.a_act_SECTII" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="BigInt" Scale="0" Size="8" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="SEC" DataSetColumn="SEC" />
              <Mapping SourceColumn="ATEL" DataSetColumn="ATEL" />
              <Mapping SourceColumn="DEN" DataSetColumn="DEN" />
              <Mapping SourceColumn="CodDiagrama" DataSetColumn="CodDiagrama" />
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="ERPDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="ERPDataSet" msprop:Generator_UserDSName="ERPDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="a_act_SECTII" msprop:Generator_TableClassName="a_act_SECTIIDataTable" msprop:Generator_TableVarName="tablea_act_SECTII" msprop:Generator_TablePropName="a_act_SECTII" msprop:Generator_RowDeletingName="a_act_SECTIIRowDeleting" msprop:Generator_RowChangingName="a_act_SECTIIRowChanging" msprop:Generator_RowEvHandlerName="a_act_SECTIIRowChangeEventHandler" msprop:Generator_RowDeletedName="a_act_SECTIIRowDeleted" msprop:Generator_UserTableName="a_act_SECTII" msprop:Generator_RowChangedName="a_act_SECTIIRowChanged" msprop:Generator_RowEvArgName="a_act_SECTIIRowChangeEvent" msprop:Generator_RowClassName="a_act_SECTIIRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="SEC" msprop:Generator_ColumnVarNameInTable="columnSEC" msprop:Generator_ColumnPropNameInRow="SEC" msprop:Generator_ColumnPropNameInTable="SECColumn" msprop:Generator_UserColumnName="SEC" type="xs:int" minOccurs="0" />
              <xs:element name="ATEL" msprop:Generator_ColumnVarNameInTable="columnATEL" msprop:Generator_ColumnPropNameInRow="ATEL" msprop:Generator_ColumnPropNameInTable="ATELColumn" msprop:Generator_UserColumnName="ATEL" type="xs:int" minOccurs="0" />
              <xs:element name="DEN" msprop:Generator_ColumnVarNameInTable="columnDEN" msprop:Generator_ColumnPropNameInRow="DEN" msprop:Generator_ColumnPropNameInTable="DENColumn" msprop:Generator_UserColumnName="DEN" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CodDiagrama" msprop:Generator_ColumnVarNameInTable="columnCodDiagrama" msprop:Generator_ColumnPropNameInRow="CodDiagrama" msprop:Generator_ColumnPropNameInTable="CodDiagramaColumn" msprop:Generator_UserColumnName="CodDiagrama" type="xs:decimal" minOccurs="0" />
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:long" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:a_act_SECTII" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
  </xs:element>
</xs:schema>